<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
<link rel="shortcut icon" href="../resources/favicon.ico" th:href="@{/static/favicon.ico}">
</head>
<body>
<table>
  <tr>
    <th>id</th>
    <th>姓名</th>
    <th>密码</th>
    <th>性别</th>
    <th>生日</th>
  </tr>
  <tr th:each="user:${list}">
    <td th:text="${user.id}"></td>
    <td th:text="${user.nam}"></td>
    <td th:text="${user.pwd}"></td>
    <td th:text="${user.sex==1}?'男':'女'"></td>
    <td th:text="${#dates.format(user.birth,'yyyy-MM-dd')}"></td>
  </tr>
</table>
</body>
</html>